<template>
	<view class="contents" :style="'height:'+screenHeight+'px;'">
		<view class="neirong">
			<view class="neironglist" v-for="(item,index) in list" :key="index">
				<view class="listaa">
					<span>项目名称:&nbsp;<span style="font-weight: bold;">{{item.xmmc}}</span></span>
				</view>
				<view class="listdispaly">
					<span>数量:&nbsp;<span>{{item.xmsl}}</span></span>
					<span>单位:&nbsp;<span>{{item.xmdw}}</span></span>
				</view>
				<view class="listdispaly">
					<span>单价:&nbsp;<span>{{item.xmdj}}</span></span>
					<span>总价:&nbsp;<span>{{item.xmje}}</span></span>
				</view>
			</view>
		</view>
		<view class="none" v-if="show">
			<view class="coent">
				<u-empty text="暂无就诊人" mode="list" icon-size="200">
				</u-empty>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
			data() {
				return {
					 jzlsh:'',
					 screenHeight: getApp().globalData.screenHeight-44,
					 show:true,
					 list:''
				}
			},
			onLoad:function(option){
				this.jzlsh=option.jzlsh
				console.log("jzlsh",this.jzlsh)
				this.ZyMoneyMx()
			},
			methods: {
				ZyMoneyMx(){
					this.$request("my", "MoneyMx",{
						jsdjh:this.jzlsh
					}).then(res => {
						console.log("收费明细", res)
						if (res.code == 1) {
							this.show=false
							this.list=res.data.resultdata
							// uni.hideLoading();
					
						} else {
							this.show=true
							uni.hideLoading();
							uni.showToast({
								title: res.msg,
								icon: 'none',
								duration: 2000
							});
						}
					}).catch(err => {
						uni.hideLoading();
						console.log("err", err)
						uni.showToast({
							title: err,
							icon: 'none',
							duration: 1000
						});
					
					});
				}
			}
		}
</script>

<style>
	@import './charge.css';
</style>